package com.csap.framework.integration.rocketmq.example.client.consumer;

import com.aliyun.openservices.ons.api.ConsumeContext;
import com.aliyun.openservices.ons.api.Message;
import com.aliyun.openservices.shade.com.alibaba.fastjson.JSONObject;
import com.csap.framework.integration.client.boot.autoconfigure.EnableRocketmqListener;
import com.csap.framework.integration.listener.MessageListener;

/**
 * @author ycf
 */
@EnableRocketmqListener(topic = "queue-location-radding", tag = "*")
public class DemoMessageListener implements MessageListener<JSONObject> {


    @Override
    public void consume(Message message, JSONObject s, ConsumeContext context) {
        System.out.println("DemoMessageListener consumer message：" + s);
    }
}
